package org.example.service.impl;

import org.example.dao.StudentDao;
import org.example.service.StudentService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.SQLException;

@Service("studentService")
public class StudentServiceimpl implements StudentService {
    @Resource
    private StudentDao studentDao;

    @Value("${name}")
    String name;
    @Override
    public void Save() {
        studentDao.Save();
        System.out.println(name);
    }

}
